﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MathLib {
    class PopulationModeling {
        private int liveLength;
        private int period;
        private int groupCount;
        private int columnCount;
        private int yearsCount;

        private Matrix[] populations = null;
        
       
        public bool IsManAndWoman { get; private set; }
    

        public PopulationModeling(int liveLength, int groupCount, bool isManAndWoman, int yearsCount) {
            if (liveLength <= 0 || period <= 0 || yearsCount <= 0 || liveLength < period)
                throw new Exception("Неверно заданы параметры");

            this.liveLength = liveLength;
            this.groupCount = groupCount;
            this.IsManAndWoman = isManAndWoman;
            this.yearsCount = yearsCount;

            period = liveLength / groupCount;
            if (isManAndWoman)
                columnCount *= groupCount * 2;
        }

 

    }
}